<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>范例1.2 定时打开窗口</title>
<script type="text/javascript">
function openWindow(){
	window.open("","窗口","toolbars=0","scrollbars=0,location=0,statusbars=0,menubars=0,zresizable=0,width=640,height=480");
}
</script>
</head>
<!-- <body onLoad="setinterval('openWindow()',1000);"> -->
<body onload="openWindow()">
<h2>2</h2>
</body>
</html>